<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  author: Jsonor
  date: 2018/6/4 14:10
  description: Description
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" %>
<html>
<div>
  <img src="../img/3.png" alt="" style="position: absolute;width: 200px;margin-left: 40%;">
</div>
<head>
  <title>Title</title>
  <style>
    li {
      list-style: none;
      display: inline-block
    }
  </style>
</head>
<body>
<div>
  <form action="${pageContext.request.contextPath}/backstage/backstageshowProduct.do">
    <input type="submit" value="照片管理" style="margin-top:70px;margin-left: 710px;">
  </form>
  <form action="${pageContext.request.contextPath}/backstage/userList.do">
    <input type="submit" value="用户信息管理" style= "margin-left: 710px;">
  </form>
  <form action="${pageContext.request.contextPath}/backstage/findMyPay.do">
    <input type="submit" value="打赏记录"style= "margin-left: 710px;">
  </form>
  <li id="headerLogin" class="headerLogin" style="display: list-item;">
    <a href="${pageContext.request.contextPath}/user/login.do"
       style="position: absolute;right:90px; top: 10px;">用户登录|</a>
  </li>
  <li id="headerRegister" class="headerRegister" style="display: list-item;">
    <a href="${pageContext.request.contextPath}/user/logout.do"
       style="position: absolute;right: 52px;top: 10px;">退出</a>
  </li>
</div>
<div>
  <ul>
    <c:forEach var="p" items="${backstageshowProduct}">
      <li class="li-product">
        <img src="${pageContext.request.contextPath}/img/${p.image}" top="100" width="250" height="250"/>
        <div>照片名称:${p.name}</div>
        <div>照片描述:${p.describe}</div>
        <div>拍摄地点:${p.site}</div>
        <div class="col-sm-offset-2 col-sm-6">
          <button class="btn btn-lg btn-primary btn-block" type="submit">
            <a href="${pageContext.request.contextPath}/backstage/backstagedelete.do?id=${p.id}">删除</a></button>
        </div>
        <div class="col-sm-offset-2 col-sm-6">
          <button class="btn btn-lg btn-primary btn-block" type="submit">
            <a href="${pageContext.request.contextPath}/backstage/updatebackstage.do?id=${p.id}">修改</a></button>
        </div>
      </li>
    </c:forEach>
  </ul>
</div>
</body>
</html>
